import java.util.Scanner;

public class Fibonacci {
    public static void main(String[] args) {
        System.out.print("求多少个费式数？");
        int a = 0;
        a = new Scanner(System.in).nextInt();
        int[] fibonacci = new int[a];
        fibonacci[1] = 1;
        for(int i = 2; i < fibonacci.length; i++) {
            fibonacci[i] = fibonacci[i - 1] + fibonacci[i - 2];
        }

        for(int f : fibonacci) {

            System.out.printf("%d", f);
            System.out.printf(" 、");

        }
        System.out.println();
        }
    }
